package cn.wolfcode.wolf2w.business.service.impl;

import cn.wolfcode.wolf2w.business.api.domain.Reply;
import cn.wolfcode.wolf2w.business.mapper.ReplyMapper;
import cn.wolfcode.wolf2w.business.query.ReplyQuery;
import cn.wolfcode.wolf2w.business.service.IReplyService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 回答Service业务层处理
 * 
 * @author SQM
 * @date 2024-11-18
 */
@Service
@Transactional
public class ReplyServiceImpl extends ServiceImpl<ReplyMapper,Reply> implements IReplyService {

    @Override
    public IPage<Reply> queryPage(ReplyQuery qo) {
        IPage<Reply> page = new Page<>(qo.getCurrentPage(), qo.getPageSize());
        return lambdaQuery()
                .page(page);
    }
}
